<?php
	require_once 'models/models_timkiem.php';
	$mod = $_GET['mod'];
	$obTim = new models_timkiem();
	switch ($mod){
		case 'timmathang':{
			if($_POST){
				$data['list'] = $obTim->_timMatHang($_POST['tim']);
			}
			require_once 'views/admin/timkiem/views_search.php';
			break;		
		}
	case 'timkhachhang':{
			if($_POST){
				$data['listkh'] = $obTim->_timKhachHang($_POST['tim']);
			}
			require_once 'views/admin/timkiem/views_search_khachhang.php';
			break;		
		}
	}
?>